package org.dromara.business.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "telegram")
public class TelegramBotProperties {
    private Bot bot;
    private Chat chat;
    private Proxy proxy;

    @Data
    public static class Bot {
        private String token;
        private String username;
    }
    @Data
    public static class Chat {
        private String id;
    }

    /**
     * 代理配置内部类
     */
    @Data
    public static class Proxy {
        private Boolean enabled;
        /**
         * HTTP 或 SOCKS5
         */
        private String type;
        /**
         * 代理地址
         */
        private String host;
        /**
         * 代理端口
         */
        private Integer port;
        /**
         * 代理用户名（可选）
         */
        private String username;
        /**
         * 代理密码（可选）
         */
        private String password;
    }
}
